﻿using B.S.BasicData.Domain;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.BasicData.Infrastructure
{
    public class MyDbContext : DbContext
    {
        public MyDbContext(DbContextOptions options) : base(options)
        {
        }
        public DbSet<UserModel> UserModels { get; set; }
        public DbSet<ShiModel> ShiModels { get; set; }
        public DbSet<ShengModel> ShengModels { get; set; }
        public DbSet<XianModel> XianModels { get; set; }
        public DbSet<LoginModel> LoginModels { get; set; }
        public DbSet<RoleModel> RoleModels { get; set; }
        public DbSet<UserRoleModel> UserRoleModels { get; set; }    
        public DbSet<MenuModel> Menus {  get; set; }
        public DbSet<ParentModel> ParentModels { get; set; }
        public DbSet<RoleMenuModel> RoleMenuModels { get; set; }
        public DbSet<ApprovalModel> ApprovalModels { get; set; }
        public DbSet<DepartmentModel> DepartmentModels { get; set; }
    }
}
